<?php
/**
 * Created by PhpStorm.
 * User: 44766
 * Date: 2018-11-25
 * Time: 18:08
 */

namespace App\Http\Controllers\Api;


use App\Models\Tag;

class TagController extends ResourceController
{
    public function index()
    {
        $tag  = Tag::whereName('职位')->first();
        $list = Tag::whereDescendantOf($tag)->whereIsLeaf()->whereIsShow(true);
        return $this->renderList($list)->autoPage($list);
    }

}